<include file="../Public/header"/>


<!-- 中部内容 -->
<div id="content">
	
	<div class="container">
		
		<div class="row">
			<!-- 左边 -->
			<include file="../Public/left"/>
			<!-- 中间 -->
	
			
			<div class="span9">
				
				<h1 class="page-title">
					<i class="icon-signal"></i>
					添加广告						
				</h1>
				
				<div class="stat-container">
										
					
							<div class="tab-content">
								<div class="tab-pane active" id="1">
								<form id="edit-profile" class="form-horizontal" method="post" action="{:U('partner/Advert/doEditAd')}" enctype="multipart/form-data" >
									<fieldset>
									
										
										<input type="hidden" name="aid" value="{$advert['aid']}" />
										<div class="control-group">											
											<label class="control-label" for="title">标题</label>
											<div class="controls">
												<input type="text" class="input-medium" id="title"  name="title" value="{$advert['title']}" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="pic">标题图片</label>
											<div class="controls">
												<input type="file" class="input-medium" id="lastname" name="pic"  value="" />
												<img src="{$advert['pic']}" />
												<p class="help-block">图片格式最好为</p>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="email">是否未链接</label>
											<div class="controls">
												<if condition="$advert['is_link']">
												<input type="checkbox" class="input-large" id="email" value="1" name="is_link" checked/>是
												<input type="checkbox" class="input-large" id="email" value="0" name="is_link"/>不是
												<else />
												<input type="checkbox" class="input-large" id="email" value="1" name="is_link"/>是
												<input type="checkbox" class="input-large" id="email" value="0" name="is_link"  checked />不是
												</if>
												<p class="help-block">则点击后是显示的内容是文章还是链接。</p>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										<div class="control-group">											
											<label class="control-label" for="email">广告位置</label>
											<div class="controls">
												<if condition="$advert['is_banner']">
												<input type="checkbox" class="input-large" id="email" value="1" name="is_banner" checked/>论波图
												<input type="checkbox" class="input-large" id="email" value="0" name="is_banner"/>列表
												<else />
												<input type="checkbox" class="input-large" id="email" value="1" name="is_banner"/>论波图
												<input type="checkbox" class="input-large" id="email" value="0" name="is_banner"  checked />列表
												</if>
												<p class="help-block">则点击后是显示的内容是文章还是链接。</p>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										<div class="control-group">											
											<label class="control-label" for="password1">链接</label>
											<div class="controls">
												<input type="text" class="input-medium" id="link" name="link"  value="{$advert['link']}" />
												<p class="help-block">最好带http://前缀的链接</p>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										<div class="control-group">											
											<label class="control-label" for="content">内容</label>
											<div class="controls">
												<!--<input type="text" class="input-medium" id="content" name="content" />-->
												<textarea name = "content" rows="16" cols="20" >{$advert['content']}</textarea>
												
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
											
											<br />
										
											
										<div class="form-actions">
											<button type="submit" class="btn btn-primary">确定并继续提交审核</button> 
											<a class="btn" href="{:U('partner/Advert/index')}">取消</a>
										</div> <!-- /form-actions -->
									</fieldset>
								</form>
								</div>
					
				</div> <!-- /stat-container -->
				
			
				
				
			</div> <!-- /span9 -->
			
		
		</div> <!-- /row -->
		
	</div> <!-- /container -->
	
</div> <!-- /content -->
					
<include file="../Public/footer"/>
